/**
 * 
 */
package com.study.handler;

/**
 * @author Administrator
 * @date 2019年5月10日
 */
public class HandlerFactory {

	/**
	 * @return GateWayHandler
	 */
	public static GateWayHandler getHandler() {
		GateWayHandler apiLimitHandler = new ApiLimitHandler();
		GateWayHandler blackListHandler = new BlackListHandler();
		GateWayHandler sessionHandler = new SessionHandler();
		apiLimitHandler.setNextGateWayHandler(blackListHandler);
		blackListHandler.setNextGateWayHandler(sessionHandler);
		
		return apiLimitHandler;
	}
}
